package cn.wolfcode.gitflow.web.controller;

import cn.wolfcode.gitflow.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {
    @Autowired
    private IUserService userService;

    @RequestMapping("/regist")
    public String regist(String username,String password){
        userService.regist(username,password);
        return "ok";
    }
}
